import { getOrPage, fetch, post } from "./http.js";

//登录
export const userLogin = (p) => post("/api/user/login", p);
//注册
export const userRegister = (p) => post("/api/user/register", p);
//获取个人信息
export const userInfo = (p) => fetch("/api/user/info", p);
//退出
export const userLogout = (p) => post("/api/user/logout", p);